package com.allqj.sfx.ddd.member.domain.entity.flow;

import com.allqj.sfx.domain.entity.UserInfo;

/**
 * @author sjw
 * @className FlowApprover
 * @date 2022/7/21 18:47
 * @description: 审批流-审核人
 */
public class FlowApprover {
    private Integer userId;
    private String userName;
    private Integer deptId;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public FlowApprover(UserInfo userInfo) {
        this.userId = userInfo.getUserId();
        this.userName = userInfo.getUserName();
        this.deptId = userInfo.getDeptId();
    }
}
